home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Mnu / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.4 KB  |  50 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef PART_H
  5. #define PART_H
  6.  
  7. //=======================================================================
  8.  
  9. // ----- Framework Includes -----
  10. #ifndef FWPART_H
  11. #include "FWPart.h"            // FW_CPart
  12. #endif
  13.  
  14.  
  15. //=======================================================================
  16. class FW_CMenuBar;
  17. class FW_CMenuEvent;
  18. class FW_CPresentation;
  19.  
  20. //=======================================================================
  21. class CMnuPart : public FW_CPart {
  22. public:
  23.     FW_DECLARE_AUTO(CMnuPart)
  24.                         CMnuPart(ODPart* odPart);
  25.     virtual             ~CMnuPart();
  26. // overrides
  27. protected:
  28.     virtual void         Initialize(Environment* ev,
  29.                                 ODStorageUnit* storageUnit, 
  30.                                 FW_Boolean fromStorage);
  31.     virtual FW_CContent* NewPartContent(Environment* ev);
  32.     virtual FW_CFrame*    NewFrame(Environment* ev,
  33.                                  ODFrame* odFrame,
  34.                                  FW_CPresentation* presentation,
  35.                                  FW_Boolean fromStorage);
  36.     virtual FW_Handled    DoAdjustMenus(Environment* ev,
  37.                                       FW_CMenuBar* menuBar, 
  38.                                       FW_Boolean hasMenuFocus,
  39.                                       FW_Boolean isRoot);
  40.     virtual FW_Handled    DoMenu(Environment* ev,
  41.                                const FW_CMenuEvent& theMenuEvent);
  42.     virtual FW_Handled    DoAbout(Environment* ev);
  43. // new members
  44. private:
  45.     FW_CPresentation*    fPresentation;
  46. };
  47.  
  48. //=======================================================================
  49. #endif
  50.